Closed Bug 1953004 Opened 3 months ago Closed 2 months ago

Several toml files do not pass the toml linter check

Categories

(Testing :: General, task)

task

Tracking

(firefox139 fixed)

RESOLVED FIXED
139 Branch
Tracking Status
firefox139 --- fixed

People

(Reporter: robwu, Assigned: robwu)

References

(Blocks 1 open bug)

Details

Attachments

(3 files)

I recently modified a test manifest (toml) file and ran ./mach lint --outgoing --fix and was surprised to see that it moved code around of changes unrelated to my patch.

It turns out that in this particular example, a recently added entry was not in alphabetical order: test_ModelHubProvider.js is placed between lowercase test_* instead of uppercase test_* at https://searchfox.org/mozilla-central/rev/03f39c99dc11e3f0c51cfb61b5f84cad988326d0/toolkit/mozapps/extensions/test/xpcshell/xpcshell.toml#151-155

I'm going to attach a patch that runs ./mach lint --fix on several test manifests (toml files).

... to preserve alphabetical order, so that we don't have to make an
exception in the toml linter.

This diff was generated as follows:

List all toml files in the tree:

find * -name '*.toml' > /tmp/toml

Manually edited /tmp/toml to drop non-relevant entries (objdir).

Ran the toml linter for all files:

cat /tmp/toml | xargs ./mach lint -l test-manifest-toml --fix

Mark, do you know why the test-manifest-toml linter did not trigger a warning in the patch to bug 1944689? It introduced the change that prompted me to look at the linter failure: https://phabricator.services.mozilla.com/D236448#change-YkF6uUWOgcWd

Flags: needinfo?(standard8)
Keywords: leave-open
Blocks: 1815447
Pushed by rob@robwu.nl: https://hg.mozilla.org/integration/autoland/rev/ae3c1f7be518 Rename test_verify_sw_mode.html to test__verify_sw_mode.html r=willdurand https://hg.mozilla.org/integration/autoland/rev/09d742fa8bb4 Add exception for toml files that do not pass the linter r=Standard8

(In reply to Rob Wu [:robwu] from comment #4)

Mark, do you know why the test-manifest-toml linter did not trigger a warning in the patch to bug 1944689? It introduced the change that prompted me to look at the linter failure: https://phabricator.services.mozilla.com/D236448#change-YkF6uUWOgcWd

As far as I know it should work - I've seen it work for ESLint in the past. I've just filed the issue here.

Flags: needinfo?(standard8)
Blocks: 1821199
No longer blocks: 1815447
Keywords: leave-open
Pushed by rob@robwu.nl: https://hg.mozilla.org/integration/autoland/rev/0aed0882ecfc Run test-manifest-toml --fix on all toml files in the trees r=credential-management-reviewers,places-reviewers,desktop-theme-reviewers,Standard8,devtools-reviewers,hjones,jmaher,jdescottes,dimi,necko-reviewers,sidebar-reviewers,jsudiaman,kershaw
Status: NEW → RESOLVED
Closed: 2 months ago
Resolution: --- → FIXED
Target Milestone: --- → 139 Branch
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: